package top.zhimingw.tankgame4;

/**
 * @Author:zhimingw
 * @Version 1.0
 */
public class Bomb {
    int x,y;
    int life = 9; //炸弹的生命周期
    boolean isLive = true; //是否存活

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    //减少生命周期
    public void lifeDown(){
        if(life>0)
            life--;
        else
            isLive = false;
    }
}
